package com.dddpeter.app.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

/**
 * 文章点赞记录实体类
 */
@TableName("article_likes")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ArticleLike {
    
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    
    @TableField("article_id")
    private Long articleId;
    
    @TableField("nickname")
    private String nickname; // 点赞者昵称
    
    @TableField("created_at")
    private LocalDateTime createdAt;
}
